package 文件.综合练习;

import java.io.File;
import java.io.IOException;

public class 练习一 {
    public static void main(String[] args) throws IOException {
        //1.创建aaa这个文件夹
        File file=new File("F\\aaa");
        System.out.println(file.mkdirs());

        //2.在aaa文件夹下创建a.tet文件
        File file1=new File(file,"a.txt");
        System.out.println(file1.createNewFile());

        System.out.println(file1.getPath());
    }
}
